home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MINCORE C Library Procedures MINCORE
-
-
-
- NNAAMMEE
- mincore - check if pages are in memory
-
- SSYYNNOOPPSSIISS
- vvooiidd mmiinnccoorree((aaddddrr,, lleenn,, vveecc))
- ccaaddddrr__tt aaddddrr;;
- iinntt lleenn;;
- cchhaarr vveecc[[]];;
-
- DDEESSCCRRIIPPTTIIOONN
- _M_i_n_c_o_r_e checks pages to see if they are in physical memory
- and returns their state.
-
- For each page in the address range starting at address _a_d_d_r
- and extending for _l_e_n bytes, a residency value is returned
- in the return vector _v_e_c.
-
- The user must have allocated enough space in *_v_e_c to hold
- the result vector.
-
- RREETTUURRNN VVAALLUUEE
- The values are returned in the vector vec. 0 indicates the
- page is not virtually present (i.e. is an invalid address).
- 1 indicates the page is paged out. 2 indicates the page is
- clean and unreferenced. 3 indicates the page is clean and
- referenced. 4 indicates the page is dirty.
-
- BBUUGGSS
- This command is machine-dependent. In particular, some
- machines may not be able to determine if a page has been
- referenced.
-
- SSEEEE AALLSSOO
- mmap(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 November 19, 1989 1
-
-
-
-